#!/bin/bash
#
# This script uploads android build to repositories defined in maven-push.gradle

set -e

source $(dirname $0)/library
version=$(wc_read_version)

echo "Building $version"

export ANDROID_HOME="$HOME/Library/Android/sdk"
pushd android
./gradlew clean build assembleRelease publish -Pversion="$version"

echo "Android build uploaded"
